package com.yanmaohu.yulia.bean;

import java.util.List;

/**
 * @author Bright Lee
 */
public final class AlterGroupList {

    private int beginIndex;
    private int endIndex;
    private List<AlterGroup> alterGroupList;

    public AlterGroupList(List<AlterGroup> alterGroupList) {
        this.beginIndex = alterGroupList.get(0).getBeginIndex();
        this.endIndex = alterGroupList.get(alterGroupList.size() - 1).getEndIndex();
        this.alterGroupList = alterGroupList;
    }

    public int getBeginIndex() {
        return beginIndex;
    }

    public int getEndIndex() {
        return endIndex;
    }

    public int size() {
        return alterGroupList.size();
    }

    public AlterGroup get(int index) {
        return alterGroupList.get(index);
    }

}
